<!doctype HTML public "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- Click to Convert 5.2: Anything to HTML -->
<!-- http://www.clicktoconvert.com -->

<html>
<head>
<title>gravityboxscheduleuserguide - page 52 of 234</title>
<meta http-equiv=content-type content=text/html;charset=iso-8859-1>
<meta name="Generator" content="Click to Convert">

<!--Start of page styles-->
<STYLE TYPE="text/css">
<!--
 /* Foreground Image Styles */

 /* Position Styles */
 .ts52p0{position:absolute;left:106px;top:97px;}
 .ts52p1{position:absolute;left:352px;top:97px;}
 .ts52p3{position:absolute;left:672px;top:97px;}
 .ts52p7{position:absolute;left:106px;top:113px;}
 .ts52p8{position:absolute;left:706px;top:1026px;}
 .ts52p9{position:absolute;left:331px;top:1044px;}
 .ts52p13{position:absolute;left:106px;top:146px;}
 .ts52p14{position:absolute;left:106px;top:164px;}
 .ts52p15{position:absolute;left:106px;top:183px;}
 .ts52p17{position:absolute;left:106px;top:201px;}
 .ts52p18{position:absolute;left:106px;top:221px;}
 .ts52p20{position:absolute;left:106px;top:239px;}
 .ts52p21{position:absolute;left:106px;top:257px;}
 .ts52p23{position:absolute;left:106px;top:275px;}
 .ts52p25{position:absolute;left:106px;top:293px;}
 .ts52p27{position:absolute;left:106px;top:311px;}
 .ts52p32{position:absolute;left:106px;top:329px;}
 .ts52p34{position:absolute;left:106px;top:347px;}
 .ts52p36{position:absolute;left:106px;top:366px;}
 .ts52p37{position:absolute;left:106px;top:384px;}
 .ts52p39{position:absolute;left:106px;top:402px;}
 .ts52p40{position:absolute;left:106px;top:421px;}
 .ts52p41{position:absolute;left:106px;top:439px;}
 .ts52p44{position:absolute;left:106px;top:457px;}
 .ts52p45{position:absolute;left:106px;top:476px;}
 .ts52p47{position:absolute;left:106px;top:513px;}
 .ts52p48{position:absolute;left:106px;top:531px;}
 .ts52p49{position:absolute;left:106px;top:549px;}
 .ts52p51{position:absolute;left:106px;top:568px;}
 .ts52p53{position:absolute;left:106px;top:586px;}
 .ts52p54{position:absolute;left:106px;top:606px;}
 .ts52p56{position:absolute;left:106px;top:624px;}
 .ts52p58{position:absolute;left:106px;top:642px;}
 .ts52p60{position:absolute;left:106px;top:660px;}
 .ts52p65{position:absolute;left:106px;top:678px;}
 .ts52p67{position:absolute;left:106px;top:696px;}
 .ts52p69{position:absolute;left:106px;top:714px;}
 .ts52p71{position:absolute;left:106px;top:732px;}
 .ts52p72{position:absolute;left:106px;top:751px;}
 .ts52p73{position:absolute;left:106px;top:770px;}
 .ts52p74{position:absolute;left:106px;top:788px;}
 .ts52p76{position:absolute;left:106px;top:806px;}
 .ts52p77{position:absolute;left:106px;top:825px;}
 .ts52p78{position:absolute;left:106px;top:843px;}
 .ts52p80{position:absolute;left:106px;top:862px;}
 .ts52p81{position:absolute;left:106px;top:880px;}
 .ts52p83{position:absolute;left:106px;top:898px;}
 .ts52p84{position:absolute;left:106px;top:917px;}
 .ts52p86{position:absolute;left:106px;top:935px;}
 .ts52p87{position:absolute;left:106px;top:954px;}
 .ts52p88{position:absolute;left:106px;top:972px;}
 .ts52p90{position:absolute;left:106px;top:990px;}

 /* Font Styles */
 .ft0p52{font-style:normal;font-weight:bold;font-size:13px;font-family:arial,sans-serif;color:#000000;}
 .ft1p52{font-weight:normal;}
 .ft2p52{font-style:normal;font-weight:normal;font-size:13px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft3p52{font-style:normal;font-weight:normal;font-size:16px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft4p52{font-style:normal;font-weight:bold;font-size:11px;font-family:arial,sans-serif;color:#000000;}
 .ft5p52{font-style:normal;font-weight:normal;font-size:16px;font-family:arial,sans-serif;color:#000000;}
 .ft6p52{font-style:normal;font-weight:normal;font-size:16px;font-family:"courier new",courier,monospace;color:#000000;}
 .ft7p52{font-style:normal;font-weight:bold;font-size:21px;font-family:arial,sans-serif;color:#808080;}

 /* Background Style */
 .styleBackground52{position:absolute;left:97px;top:219px}

 /* Navigation Styles */
 .styleNavBarTop{position:absolute;left:0px;top:2px}
 .nb{position:absolute;left:2px;top:0px}
 .nbs{position:absolute;left:0px;top:0px}
 .nbe{position:absolute;left:836px;top:0px}
 .styleNavBarBot{position:absolute;left:0px;top:1117px}
-->
</STYLE>
<!--End of page styles-->

</head>
<body bgcolor="#ffffff" text="#000000" link="#0000FF" Vlink="#660099">

<table id="pageTable" width="836" STYLE="position: relative; left: auto; top: auto;"><tr><td>
<div class=nbs><img src="./navbarstart.gif" width="2" height="30"></div>
<div class=nb><img src="./navbar.gif" width="836" height="30" alt="Navigation bar"></div>
<div class=nbe><img src="./navbarend.gif" width="2" height="30"></div>
<div class=styleNavBarTop>
<table width="834" height="26" border="0" cellspacing="0">
  <tr align="left">
    <td width="4">&nbsp;</td>
    <td width="25" align="center"><a href="http://www.gravitybox.com" target="_parent"><img src="./home.gif" border="0" alt="Home"></a></td>
    <td width="25" align="center"><a href="#" onClick="window.open('./print.html','Printing','width=300,height=100,toolbar=no,directories=no');return false;"><img src="./print.gif" border="0" alt="Print document"></a></td>
    <td width="10" align="center"><img src="./separator.gif" border="0"></td>
    <td width="18" align="center"><a href="./index1.html"><img src="./start.gif" width="18" height="14" border="0" alt="Start"></a></td>
    <td width="18" align="center"><a href="./index51.html"><img src="./back.gif" width="14" height="14" border="0" alt="Previous page"></a></td>
    <td width="80" valign="middle"><table width="100%" height="16" border="0" cellspacing="1" bgcolor="#ACA899"><tr><td align="center" bgcolor="#ffffff"><font face=verdana,arial,sans-serif><font size="1">&nbsp;52 of 234&nbsp;</font></font></td></tr></table></td>
    <td width="18" align="center"><a href="./index53.html"><img src="./forward.gif" width="14" height="14" border="0" alt="Next page"></a></td>
    <td width="18" align="center"><a href="./index234.html"><img src="./end.gif" width="18" height="14" border="0" alt="End"></a></td>
    <td width="620">&nbsp;</td>
  </tr>
</table>
<p>
</div>
<nobr>
<div class=styleBackground52><img src="./background52.png" width="633" height="836" border="0" alt=""></div>
<div class=ts52p0><span class="ft0p52"> </span></div>
<div class=ts52p1><span class="ft0p52">Gravitybox Schedule Primer<span class="ft1p52"> </span></span></div>
<div class=ts52p3><span class="ft0p52">Page 50&nbsp; </span></div>
<div class=ts52p7><span class="ft2p52"> </span></div>
<div class=ts52p8><span class="ft3p52"> </span></div>
<div class=ts52p9><span class="ft4p52">1998&#45;2004 Gravitybox Software LLC<span class="ft3p52"> </span></span></div>
<div class=ts52p13><span class="ft5p52"> </span></div>
<div class=ts52p14><span class="ft5p52"> </span></div>
<div class=ts52p15><span class="ft5p52">The following code will load all the data a file contains. </span></div>
<div class=ts52p17><span class="ft5p52"> </span></div>
<div class=ts52p18><span class="ft6p52">Public Sub Save() </span></div>
<div class=ts52p20><span class="ft6p52"> </span></div>
<div class=ts52p21><span class="ft6p52">Dim oXMLParameters As CXMLParameters </span></div>
<div class=ts52p23><span class="ft6p52">&nbsp;&nbsp; </span></div>
<div class=ts52p25><span class="ft6p52">&nbsp; Call oXMLParameters.UseAllCollections(True) </span></div>
<div class=ts52p27><span class="ft6p52">&nbsp; oXMLParameters.FileName = &#34;c:\schedule.gcf&#34; </span></div>
<div class=ts52p32><span class="ft6p52">&nbsp; Call Schedule1.ImportXML(oXMLParameters) </span></div>
<div class=ts52p34><span class="ft6p52">&nbsp; Set oXMLParameters = Nothing </span></div>
<div class=ts52p36><span class="ft6p52"> </span></div>
<div class=ts52p37><span class="ft6p52">End Sub<span class="ft5p52"> </span></span></div>
<div class=ts52p39><span class="ft5p52"> </span></div>
<div class=ts52p40><span class="ft5p52">The UseAllCollections method was invoked to set all the load flags for all the collections </span></div>
<div class=ts52p41><span class="ft5p52">to true. This will load the data for each of those collections, if data exists in the file. </span></div>
<div class=ts52p44><span class="ft5p52"> </span></div>
<div class=ts52p45><span class="ft7p52">ExportXML </span></div>
<div class=ts52p47><span class="ft5p52">A schedule may be saved using the ExportXML method. It also takes a </span></div>
<div class=ts52p48><span class="ft5p52">CXMLParameters object as a parameter, though more of its properties are used. The </span></div>
<div class=ts52p49><span class="ft5p52">object may be setup just as if calling the ImportXML routine, with the exception that the </span></div>
<div class=ts52p51><span class="ft5p52">Overwrite Boolean flag may be set to true, to overwrite the file, if it exists. </span></div>
<div class=ts52p53><span class="ft5p52"> </span></div>
<div class=ts52p54><span class="ft6p52">Dim oXMLParameters As CXMLParameters </span></div>
<div class=ts52p56><span class="ft6p52">&nbsp;&nbsp; </span></div>
<div class=ts52p58><span class="ft6p52">&nbsp; Call oXMLParameters.UseAllCollections(True) </span></div>
<div class=ts52p60><span class="ft6p52">&nbsp; oXMLParameters.FileName = &#34;c:\schedule.gcf&#34; </span></div>
<div class=ts52p65><span class="ft6p52">&nbsp; oXMLParameters.Overwrite = True </span></div>
<div class=ts52p67><span class="ft6p52">&nbsp; Call Schedule1.ExportXML(oXMLParameters) </span></div>
<div class=ts52p69><span class="ft6p52">&nbsp; Set oXMLParameters = Nothing<span class="ft5p52"> </span></span></div>
<div class=ts52p71><span class="ft5p52"> </span></div>
<div class=ts52p72><span class="ft5p52"> </span></div>
<div class=ts52p73><span class="ft5p52">Do remember when loading a file, no information on a schedule is removed. If a </span></div>
<div class=ts52p74><span class="ft5p52">schedule has one appointment on it and a saved file is loaded with two appointments in </span></div>
<div class=ts52p76><span class="ft5p52">it, there will be total of three appointments on the schedule, after the load. If there is </span></div>
<div class=ts52p77><span class="ft5p52">previous information in a schedule collection, it will probably need to be cleared before a </span></div>
<div class=ts52p78><span class="ft5p52">file is loaded. Clearing first will ensure that after a load, the only items in a schedule </span></div>
<div class=ts52p80><span class="ft5p52">collection are the items loaded from file. This action is not necessary however. If two or </span></div>
<div class=ts52p81><span class="ft5p52">more schedules are being merged, multiple loads without first clearing is desirable. </span></div>
<div class=ts52p83><span class="ft5p52"> </span></div>
<div class=ts52p84><span class="ft5p52">Which collections to save is a concern as well. It may be desired to save only the </span></div>
<div class=ts52p86><span class="ft5p52">ScheduleItems collection. Perhaps there is no need for information in the other </span></div>
<div class=ts52p87><span class="ft5p52">collections. There may be a standard format an application has, with common </span></div>
<div class=ts52p88><span class="ft5p52">Providers, Categories, etc. In this case, it is redundant to save the information that is </span></div>
<div class=ts52p90><span class="ft5p52">already known. The other collections may be toggled off. The ScheduleItems collection </span></div>
<div class=styleNavBarBot>
<table width="836" border="0" cellspacing="2">
  <tr></tr>
  <tr>
    <td width="118"><a href="http://www.purepage.com"><img src="./smalllogo.gif" width="118" height="46" border="0" alt="http://www.purepage.com"></a></td>
    <td></td>
  </tr>
</table>
</div>

</td></tr></table>

</body>
</html>
